﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Collections;
namespace ClientEndpoint
{
	public class ClientProperties
	{
		string name_;
		public string name
		{
			get { return name_; }
			private set { name_ = value; }
		}
		ArrayList portNumbers_;
		public ArrayList portNumbers
		{
			get { return portNumbers_; }
			private set { portNumbers_ = value; }
		}
		readonly Package.HelloPackage.NodeType nodeType_;

		public Package.HelloPackage.NodeType nodeType
		{
			get { return nodeType_; }
		//	private set { nodeType_ = value; }
		}
		ClientProperties(	string name, 
							ArrayList ports,
							Package.HelloPackage.NodeType type)
		{
			name_ = name;
			portNumbers = ports;
			nodeType_ = type;
		}
		static ClientProperties rInstance_ = null;
		static public ClientProperties getInstance(	string name = null,
													ArrayList ports = null,
													Package.HelloPackage.NodeType type = Package.HelloPackage.NodeType.UNI)
		{
			if (rInstance_ == null)
				rInstance_ = new ClientProperties(name, ports, type);
			return rInstance_;
		}
	}
}
